<?php
class Application_Form_Tv extends Application_Form_Product
{
	public function __construct($options = null)
	{
		parent::__construct($options);
		$this->setName('tv');


		
		$typeTvChoice = array(		'1' => 'LCD',
								 	'2' => 'LED',
									'3' => 'Plasma',
									'4' => 'Other',
								);
		$type = new Zend_Form_Element_Select('type');
		$type->setLabel('Type:');
		$type->addMultiOptions(array('-1' => 'Choice:')+$typeTvChoice);
		$type->class = 'type';
		$type->addValidator(new Zend_Validate_Between(array('min' => 1, 'max' => 4)))
		->addErrorMessage('You need to select one value');
		
		$threed = new Zend_Form_Element_Checkbox('threed');
		$threed->setLabel('3D:')
		->addDecorator('Label',array('class'=>'form_label'))
		->setValue(1)
		->setAttrib('checked','');
		
		$submit = new Zend_Form_Element_Submit('submit');
		$submit->setAttrib('id', 'submitbutton')
		->setLabel('Add');
		
		$elements = array( $type, $threed, $submit );
		$this->addElements($elements);
		
		
		
		
		$this->setDecorators( array( array('ViewScript', array('viewScript' => 'forms/loginform.phtml'))));



	}
}